<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>展示售卖的二手车列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	<table border="1" align="center" width="800">
  		<tr align="center">
  			<td>爱车图片</td>
			<td>汽车品牌名称（品牌-型号）</td>
			<td>购买时间</td>
			<td>出售价格（单位：元）</td>
			<td>详细介绍（不少于30字的描述）</td>
  		</tr>
  		<c:forEach items="${sellList}" var="sell">
	  		<tr align="center">
	  			<td>${sell.image}</td>
				<td>${sell.carName}</td>
				<td>${sell.year}</td>
				<td>${sell.price}</td>
				<td>${sell.particulars}</td>
	  		</tr>
  		</c:forEach>
  	</table>
 <hr>
  		<div style = "text-align:center;">
  		<input type="button" value="返回" onclick="javascript:history.go(-1);">
  		</div> 
  
  </body>
</html>
